# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy

# 马蜂窝热门文章
class HronetItem(scrapy.Item):
    # define the fields for your item here like:
    # 主键
    _id = scrapy.Field()
    # 文章主图地址
    mainPictureUrl = scrapy.Field()
    # 旅游行程时间
    travelDay = scrapy.Field()
    # 文章作者
    author = scrapy.Field()
    # 文章内容 不存储,作为传递媒介
    html = scrapy.Field()
    # 文章内容存储字节大小 MB单位
    size = scrapy.Field()
    # 旅游文章类型
    type = scrapy.Field()
    # 文章标题
    title = scrapy.Field()
    # 文章发布时间
    sendTime = scrapy.Field()
    # 文章创建时间
    createTime = scrapy.Field()
    # 文章是否删除（0 - 否/ 1 - 是）
    isDeleted = scrapy.Field()

# 马蜂窝热门文章富文本HTML分块
class HronetHotHTMLItem(scrapy.Item):
    # 主键
    _id = scrapy.Field()
    # 文章ID
    hronethotId = scrapy.Field()
    # 文章内容 分块
    html = scrapy.Field()
    # 分块顺序
    sequence = scrapy.Field()
    # 文章是否删除（0 - 否/ 1 - 是）
    isDeleted = scrapy.Field()
    
# 马蜂窝热门文章首页图片
class HronetHotMainPircture(scrapy.Item):
    # 主键
    _id = scrapy.Field()
    # 文章ID
    hronethotId = scrapy.Field()
    # 图片base64内容
    content = scrapy.Field()
    # 分块顺序
    sequence = scrapy.Field()
